package com.neu.carbon.wms.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.neu.carbon.wms.mapper.WmsReplenishApplyMapper;
import com.neu.carbon.wms.domain.WmsReplenishApply;
import com.neu.carbon.wms.service.IWmsReplenishApplyService;

/**
 * 补货申请Service业务层处理
 * 
 * @author neuedu
 * @date 2025-03-17
 */
@Service
public class WmsReplenishApplyServiceImpl implements IWmsReplenishApplyService 
{
    @Autowired
    private WmsReplenishApplyMapper wmsReplenishApplyMapper;

    /**
     * 查询补货申请
     * 
     * @param id 补货申请ID
     * @return 补货申请
     */
    @Override
    public WmsReplenishApply selectWmsReplenishApplyById(Long id)
    {
        return wmsReplenishApplyMapper.selectWmsReplenishApplyById(id);
    }

    /**
     * 查询补货申请列表
     * 
     * @param wmsReplenishApply 补货申请
     * @return 补货申请
     */
    @Override
    public List<WmsReplenishApply> selectWmsReplenishApplyList(WmsReplenishApply wmsReplenishApply)
    {
        return wmsReplenishApplyMapper.selectWmsReplenishApplyList(wmsReplenishApply);
    }

    /**
     * 新增补货申请
     * 
     * @param wmsReplenishApply 补货申请
     * @return 结果
     */
    @Override
    public int insertWmsReplenishApply(WmsReplenishApply wmsReplenishApply)
    {
        return wmsReplenishApplyMapper.insertWmsReplenishApply(wmsReplenishApply);
    }

    /**
     * 修改补货申请
     * 
     * @param wmsReplenishApply 补货申请
     * @return 结果
     */
    @Override
    public int updateWmsReplenishApply(WmsReplenishApply wmsReplenishApply)
    {
        return wmsReplenishApplyMapper.updateWmsReplenishApply(wmsReplenishApply);
    }

    /**
     * 批量删除补货申请
     * 
     * @param ids 需要删除的补货申请ID
     * @return 结果
     */
    @Override
    public int deleteWmsReplenishApplyByIds(Long[] ids)
    {
        return wmsReplenishApplyMapper.deleteWmsReplenishApplyByIds(ids);
    }

    /**
     * 删除补货申请信息
     * 
     * @param id 补货申请ID
     * @return 结果
     */
    @Override
    public int deleteWmsReplenishApplyById(Long id)
    {
        return wmsReplenishApplyMapper.deleteWmsReplenishApplyById(id);
    }
}
